package com.next

class ProductOpportunityStage
{
    String code
    OpportunityStage stage

    Double probability = 0

    Component component

    String logging

    static belongsTo = [product: Product]
    static constraints = {
        logging type: "text", nullable: true, blank: true
        code maxSize: 16, unique: ['product']
        stage unique: ['product']
    }

    static mapping = {
        sort 'code'
    }
}
